import request from "@/utils/request";

/**
 * @Auther: 唐十七
 * @Date: 2024/11/20 20:34
 * @Description: 获取设备明细
 * @Params: * @param null
 * @Returns:
 */
export function getDeviceDetailById(num) {
  return request({
    url: `/zk/deviceDetails/${num}`,
    method: "get",
  });
}

/**
 * @Auther: 唐十七
 * @Date: 2024/11/20 20:35
 * @Description: 修改设备
 */
export function editDeviceDetail(data) {
  return request({
    url: `/zk/deviceDetails`,
    method: "put",
    data: data,
  });
}
